package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;

import javax.sql.DataSource;
/*
  websocket聊天室redis数据库存储，订单项目
 */
@SpringBootApplication
@ServletComponentScan
public class Demo1Application {

    public static void main(String[] args) {
        //        SpringApplication.run(DemoApplication.class, args);
        ConfigurableApplicationContext context = SpringApplication.run(Demo1Application.class, args);
        DataSource dataSource = (DataSource)  context.getBean("dataSource");
        System.out.println(dataSource.getClass());
    }

}
